package mask;

public class Title2 {
	public static void main(String[] args) {
		double height = 100;
		double lastHeight = 100;
		double sum = 100;
		for (int i = 1; i <= 20; i++) {
			lastHeight = height * 0.5;
			
			height = lastHeight;
			lastHeight=height*2;
			System.out.println(height);
			sum += lastHeight;
		}
		System.out.println("20次落地所经过的米数" + sum);
	}
}
